<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { removeToken } from '@/utils/auth'
export default {
  name: 'App',

  methods: {
    // 关闭浏览器，清除cookie
    onclose() {
      if (event.clientX > document.body.clientWidth && event.clientY < 0 || event.altKey) {
        removeToken()
      }
    }
  }
}
</script>
